<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TechTabi</title>
    <style>
        body {
            align-items: center;
            margin: 0;
            background-color: #f0f0f0;
        }
        img {
            max-width: 100%;
            height: auto;
        }
    </style>
</head>
<body>
    <img src="zh.jpg" alt="Main Image" width="3810" height="4728" usemap="#image-map">
    <map name="image-map">
        <area target="_blank" alt="whitepaper" title="whitepaper" href="https://whitepaper.techtabi.com/docs/overview" coords="1700,902,2104,1054" shape="rect">
        <area target="_self" alt="language" title="language" href="/?language=en" coords="3561,1,3790,152" shape="rect">
        <area target="_blank" alt="mailto:service@techtabi.com" title="mailto:service@techtabi.com" href="mailto:service@techtabi.com" coords="1611,4496,2203,4628" shape="rect">
    </map>
    <script>
        // const img = document.querySelector('img');
        // const area = document.querySelector('area');

        // img.onload = () => {
        //     const imgWidth = img.naturalWidth;
        //     const imgHeight = img.naturalHeight;

        //     // Calculate coordinates based on image dimensions
        //     const x1 = Math.round(imgWidth * 0.05);
        //     const y1 = Math.round(imgHeight * 0.54);
        //     const x2 = Math.round(imgWidth * 0.28);
        //     const y2 = Math.round(imgHeight * 0.62);

        //     // Set the coords attribute dynamically
        //     area.coords = `${x1},${y1},${x2},${y2}`;
        // };
    </script>
    <script src="./jquery-3.6.0.min.js"></script>
    <script src="./jquery.rwdImageMaps.min.js"></script>
    <script>
      $(document).ready(function() {
        $('img[usemap]').rwdImageMaps();
      });
    </script>
</body>
</html>
